package de.velvettear.dimmdrivehelper.kernel.threads;

import java.awt.MouseInfo;
import java.awt.Point;

public class MouseThread extends Thread {

	@Override
	public void run() {
		try {
			while(true) {
				Thread.sleep(1000);
				Point mouse = MouseInfo.getPointerInfo().getLocation();
				System.out.println("X: " + mouse.getX() + " Y: " + mouse.getY());
			}					
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
